/*
 * @Description: 
 * @Author: xunzhaotech
 * @Email: luyb@xunzhaotech.com
 * @QQ: 1525572900
 * @Date: 2024-01-14 14:59:33
 * @LastEditTime: 2024-04-21 12:43:49
 * @LastEditors: xunzhaotech
 */
// import baseConfig from 'awesome-vitepress-theme/config'
// import { defineConfigWithTheme } from 'vitepress'
// import type { ThemeConfig } from 'awesome-vitepress-theme'
// import { defineConfig } from 'vitepress'
// import { fileURLToPath, URL } from 'node:url'
import { defineConfigWithTheme } from 'vitepress'
// import vue from '@vitejs/plugin-vue'
import type { ThemeConfig } from './types/custom-theme'
// import { genFeed } from './genFeed.js'
// import path from 'node:path'
export default defineConfigWithTheme<ThemeConfig>({
  base: '/micro-design-ai/',
  title: '快智岛AI',
  titleTemplate: ':title - MicroDesign UI',
  description: '一个专注于微服务架构生态的UI框架',
  // theme: path.resolve(__dirname, './theme'),
  cleanUrls: false,
  // rewrites: {
  //   'source/:page': 'destination/:page'
  // },
  head: [
    ['meta', {charset:'UTF-8' }],
    ['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1.0' }],
    ['meta', { name: 'description', content: '一个专注于微服务架构生态的UI框架' }],
    ['meta', { name: 'keywords', content: 'MicroDesign UI, 微服务框架，MicroDesign Admin' }],
    ['meta', { name: 'author', content: 'MicroDesign UI' }],
    [
     'link',
      { rel: 'stylesheet', href: '/docs/tailwind.css' }
    ],
    [
      'link',
      { rel: 'preconnect', href: 'https://fonts.googleapis.com' }
    ],
    [
      'link',
      { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }
    ],
    [
      'link',
      { href: 'https://fonts.googleapis.com/css2?family=Roboto&display=swap', rel: 'stylesheet' }
    ],
    [
      'link',
      {
        rel: 'icon',
        size: '32x32',
        type: 'image/x-icon',
        href: '/favicon.ico'
      }
    ],
    [
      'script',
      {
        src: 'https://cdn.usefathom.com/script.js',
        'data-site': 'NYHGSGQV',
        'data-spa': 'auto',
        defer: ''
      }
    ]
  ],
  // srcDir: '.',
  // outDir: ' ./.vitepress/dist',
  srcExclude: ['**/README.md', '**/TODO.md'],
  assetsDir: 'static',
  cacheDir: '.vitepress/.vite',
  ignoreDeadLinks: true,
  metaChunk: true,
  mpa: false,
  appearance: true,
  lastUpdated: true,
  markdown: {},
  themeConfig: {
    logo: '/logo.png', // 网站 logo
    siteTitle: '快智岛AI',
    outlineTitle: '快速导航',
    // navbar: [
    //   // 自定义导航栏
    // ],
    // sidebar: [
    //   // 自定义侧边栏
    // ],
    // colorScheme: 'dark', // 启用暗色主题
    // ...其他主题配置项
    search: {
      provider: 'local'
    },
    socialLinks: [
      { icon: 'github', link: 'https://gitee.com/MicroDesign/micro-design-ui' },
      { icon: 'npm', link: 'https://www.npmjs.com/package/@microdesign/vuepress-theme-microdocs' }
    ],
    editLink: {
      pattern: 'https://gitee.com/MicroDesign/micro-design-ui/:path',
      text: '在线编辑'
    },
    docFooter: {
      prev: 'Pagina prior',
      next: 'Proxima pagina'
    },
    lastUpdated: {
      text: '更新时间',
      formatOptions: {
        dateStyle: 'full',
        timeStyle: 'medium'
      }
    },
    footer: {
      message: 'Released under the MIT License.',
      copyright: 'Copyright © 2019-present MicroDesign UI'
    },
    nav: [
      // slots: {
      //   // 假设有一个名为 'left' 的插槽，你可以在这里自定义它的内容
      //   left: [
      //     { text: '自定义链接', link: 'https://example.com' },
      //     // 其他链接...
      //   ],
      // },
      // {
      //   text: 'Docs',
      //   activeMatch: `^/(guide|examples)/`,
      //   items: [
      //     {
      //       items: [
      //         { text: 'Guide', link: '/guide/introduction' },
      //         { text: 'Installation', link: '/guide/installation' }
      //       ]
      //     }
      //   ]
      // },
      // {
      //   text: 'API Reference',
      //   activeMatch: `^/api/`,
      //   link: '/api/'
      // },
      // {
      //   text: 'Ecosystem',
      //   items: [
      //     {
      //       items: [{ text: 'Jobs', link: 'https://vuejobs.com/?ref=vuejs' }]
      //     },
      //     {
      //       text: 'Official Projects',
      //       items: [
      //         { text: 'Vue Router', link: 'https://next.router.vuejs.org/' },
      //         { text: 'Vuex', link: 'https://next.vuex.vuejs.org/' },
      //         { text: 'Vue CLI', link: 'https://cli.vuejs.org/' },
      //         {
      //           text: 'Vue Test Utils',
      //           link: 'https://next.vue-test-utils.vuejs.org/v2/guide/introduction.html'
      //         },
      //         {
      //           text: 'Devtools',
      //           link: 'https://github.com/vuejs/vue-devtools'
      //         }
      //       ]
      //     }
      //   ]
      // },
      // {
      //   text: 'Community',
      //   activeMatch: `^/community/`,
      //   items: [
      //     {
      //       items: [
      //         { text: 'Team', link: '/community/team' },
      //         {
      //           text: 'Contribution Guide',
      //           link: '/community/contribution-guide'
      //         },
      //         { text: 'Events', link: 'https://events.vuejs.org/' }
      //       ]
      //     },
      //     {
      //       text: 'News',
      //       items: [
      //         { text: 'Twitter', link: 'https://twitter.com/vuejs' },
      //         { text: 'Newsletter', link: 'https://news.vuejs.org/' },
      //         { text: 'Blog', link: 'https://blog.vuejs.org/' }
      //       ]
      //     },
      //     {
      //       text: 'Help',
      //       items: [
      //         { text: 'Forum', link: 'https://forum.vuejs.org/' },
      //         { text: 'Chat', link: 'https://discord.com/invite/HBherRA' },
      //         { text: 'DEV Community', link: 'https://dev.to/t/vue' }
      //       ]
      //     }
      //   ]
      // },
      // {
      //   text: 'Sponsor',
      //   link: '/sponsor/'
      // }
    ],
    // sidebar: {
    //   '/guide/': [
    //     {
    //       text: 'Guide',
    //       items: [
    //         { text: 'Index', link: '/zh/guide/' },
    //         { text: 'One', link: '/zh/guide/one' },
    //         { text: 'Two', link: '/zh/guide/two' }
    //       ]
    //     }
    //   ],
    //   '/config/': [
    //     {
    //       text: 'Config',
    //       items: [
    //         { text: 'Index', link: '/config/' },
    //         { text: 'Three', link: '/config/three' },
    //         { text: 'Four', link: '/config/four' }
    //       ]
    //     }
    //   ]
    // },
    // sidebar: [
    //   {
    //     text: '测试数据',
    //     items: [
    //       { text: 'Item A', link: '/guide/index.md' },
    //       { text: 'Item B', link: '/item-b' },
    //     ]
    //   },
    //   {
    //     text: 'Section Title B',
    //     items: [
    //       { text: 'Item C', link: '/item-c' },
    //       { text: 'Item D', link: '/item-d' },
    //     ]
    //   }
    // ]
    // sidebar: {
    // '/guide/': [
    //   {
    //     text: '使用指南',
    //     items: [
    //       { text: '开发环境', link: '/guide/' }, // /guide/index.md
    //       { text: '代码仓库', link: '/guide/one' }, // /guide/one.md
    //       { text: '更新日志', link: '/guide/two' }, // /guide/two.md
    //       { text: '问题反馈', link: '/guide/two' }, // /guide/two.md
    //       { text: '友情链接', link: '/guide/two' }, // /guide/two.md
      
    //     ]
    //   },
    //   {
    //     text: '知识储备',
    //     items: [
    //       { text: '开发环境', link: '/guide/' }, // /guide/index.md
    //       { text: '代码仓库', link: '/guide/one' }, // /guide/one.md
    //       { text: '更新日志', link: '/guide/two' }, // /guide/two.md
    //       { text: '问题反馈', link: '/guide/two' }, // /guide/two.md
    //       { text: '友情链接', link: '/guide/two' }, // /guide/two.md
      
    //     ]
    //   },
    //   {
    //     text: '常用工具',
    //     items: [
    //       { text: '开发环境', link: '/guide/' }, // /guide/index.md
    //       { text: '代码仓库', link: '/guide/one' }, // /guide/one.md
    //       { text: '更新日志', link: '/guide/two' }, // /guide/two.md
    //       { text: '问题反馈', link: '/guide/two' }, // /guide/two.md
    //       { text: '友情链接', link: '/guide/two' }, // /guide/two.md
      
    //     ]
    //   }
    // ],
    // '/configs/': [
    //   {
    //     text: '工具配置',
    //     items: [
    //       { text: 'ESLint', link: '/configs/eslint' }, // /guide/two.md
    //       { text: 'Prettier', link: '/configs/prettier' }, // /guide/one.md
    //     ]
    //   },
    //   {
    //     text: '项目配置',
    //     items: [
    //       { text: 'ESLint', link: '/configs/eslint' }, // /guide/two.md
    //       { text: 'Prettier', link: '/configs/prettier' }, // /guide/one.md
    //     ]
    //   }
    // ],
    // '/components/': [
    //   {
    //     text: '开发指南',
    //     items: [
    //       { text: '介绍', link: '/guide/about' }, // /guide/index.md
    //       { text: '关于MicroUI', link: '/guide/' }, // /guide/index.md
      
    //     ]
    //   },
    //   {
    //     text: '快速开发',
    //     items: [
    //       { text: '新特性', link: '/components/button/index' }, // /guide/index.md
      
    //     ]
    //   },
    //   {
    //     text: '基础组件',
    //     items: [
    //       { text: '按钮(Button)', link: '/components/basic/button/index.md' }, // /guide/index.md
    //       { text: '图标(Icon)', link: '/components/basic/icon/index.md/' }, // /guide/one.md
    //       { text: '图片(Image)', link: '/components/basic/image/index.md' }, // /guide/two.md
    //       { text: '加载图标(Loading)', link: '/components/loading/index.md' }, // /guide/index.md
    //       { text: '标签(Tag)', link: '/components/basic/tag/index.md' }, // /guide/one.md
    //       { text: '提示(Toast)', link: '/components/basic/toast/index.md' } // /guide/two.md
    //     ]
    //   },
    //   {
    //     text: '业务组件',
    //     items: [
    //       { text: '按钮', link: '/components/' }, // /guide/index.md
    //       { text: 'One', link: '/components/one' }, // /guide/one.md
    //       { text: 'Two', link: '/components/two' } // /guide/two.md
      
    //     ]
    //   },
    //   {
    //     text: '系统组件',
    //     items: [
    //       { text: '按钮', link: '/components/' }, // /guide/index.md
    //       { text: 'One', link: '/components/one' }, // /guide/one.md
    //       { text: 'Two', link: '/components/two' } // /guide/two.md
      
    //     ]
    //   },
    //   {
    //     text: '更多资料',
    //     items: [
    //       { text: '架构说明', link: '/components/introduce/' }, // /guide/index.md
    //       { text: '整用说明', link: '/components/introduce/' },
    //     ]
    //   },
    //   {
    //     text: '更新日志',
    //     items: [
    //       { text: '新特性', link: '/components/button/' }, // /guide/index.md
      
    //     ]
    //   },
    // ],
    // '/pages/plugins/' : [
    //   {
    //     text: '插件',
    //     items: [
    //       { text: '按钮', link: '/components/' }, // /guide/index.md
    //       { text: 'One', link: '/components/one' }, // /guide/one.md
    //       { text: 'Two', link: '/components/two' } // /guide/two.md
      
    //     ]
    //   },
    // ],
    // '/pages/theme/' : [
    //   {
    //     text: '主题',
    //     items: [
    //       { text: '按钮', link: '/components/' }, // /guide/index.md
    //       { text: 'One', link: '/components/one' }, // /guide/one.md
    //       { text: 'Two', link: '/components/two' } // /guide/two.md
      
    //     ]
    //   },
    // ],
    // '/pages/templates/': [
    //   {
    //     text: '模板',
    //     items: [
    //       { text: '按钮', link: '/components/' }, // /guide/index.md
    //       { text: 'One', link: '/components/one' }, // /guide/one.md
    //       { text: 'Two', link: '/components/two' } // /guide/two.md
      
    //     ]
    //   },
    // ],
    // '/pages/docs/': [
    //   {
    //     text: '系统文档',
    //     items: [
    //       { text: 'base', link: '/pages/docs/README.md' }, // /guide/index.md
    //       { text: 'modules', link: '/pages/docs/modules.md' }, // /guide/one.md
    //       { text: 'classes', link: '/pages/docs/classes/MyClass.md' }, // /guide/two.md
    //       { text: 'interfaces', link: '/pages/docs/interfaces/MyInterface.md' } // /guide/two.md
      
    //     ]
    //   },
    //   {
    //     text: '注释文档',
    //     items: [
    //       { text: 'base', link: '/pages/docs/README.md' }, // /guide/index.md
    //       { text: 'modules', link: '/pages/docs/modules.md' }, // /guide/one.md
    //       { text: 'classes', link: '/pages/docs/classes/MyClass.md' }, // /guide/two.md
    //       { text: 'interfaces', link: '/pages/docs/interfaces/MyInterface.md' } // /guide/two.md
      
    //     ]
    //   },
    //   {
    //     text: 'API文档',
    //     items: [
    //       { text: 'base', link: '/pages/docs/README.md' }, // /guide/index.md
    //       { text: 'modules', link: '/pages/docs/modules.md' }, // /guide/one.md
    //       { text: 'classes', link: '/pages/docs/classes/MyClass.md' }, // /guide/two.md
    //       { text: 'interfaces', link: '/pages/docs/interfaces/MyInterface.md' } // /guide/two.md
      
    //     ]
    //   },
    // ],
    // '/pages/about/': [
    //   {
    //     text: '产品使命',
    //     items: [
    //       { 
    //         text: '简单',
    //         link: '/dist/modules' 
    //       },
    //       { 
    //         text: '高效',
    //         link: '/dist/modules' 
    //       },
    //       { 
    //         text: '系统',
    //         link: '/dist/modules' 
    //       },
    //       { 
    //         text: '智能',
    //         link: '/dist/modules' 
    //       },
    //     ],
    //   },
    // ],
    // 'pages/stack/': [
    //   {
    //     text: 'Vue',
    //     items: [
    //       { 
    //         text: '第1节 Vue3中获取proxy包裹的数据',
    //         link: '/pages/stack/vue2/chapters1' 
    //       },
    //     ],
    //   },
    //   {
    //     text: 'Vue3',
    //     items: [
    //       { 
    //         text: 'Entry',
    //         link: '/dist/modules' 
    //       },
    //     ],
    //   },
    // ],
    // '/pages/links/': [
    //   {
    //     text: '设计开源',
    //     items: [
    //       { text: '移动端', link: '/pages/links/templates/mobile.md' },
    //       { text: '管理端', link: '/pages/links/templates/admin.md' },
    //       { text: '网页端', link: '/pages/links/templates/ssr.md' },
    //     ],
    //   },
    //   {
    //     text: '前端开源',
    //     items: [
    //       { text: '移动端', link: '/pages/links/templates/mobile.md' },
    //       { text: '管理端', link: '/pages/links/templates/admin.md' },
    //       { text: '网页端', link: '/pages/links/templates/ssr.md' },
    //     ],
    //   },
    //   {
    //     text: '后端开源',
    //     items: [
    //       { text: 'SpringBoot', link: '/pages/links/backend/springboot.md' },
    //       { text: '管理端', link: '/pages/links/templates/admin.md' },
    //       { text: '网页端', link: '/pages/links/templates/ssr.md' },
    //     ],
    //   },
    //   {
    //     text: '测试开源',
    //     items: [
    //       { text: '移动端', link: '/pages/links/templates/mobile.md' },
    //       { text: '管理端', link: '/pages/links/templates/admin.md' },
    //       { text: '网页端', link: '/pages/links/templates/ssr.md' },
    //     ],
    //   },
    //   {
    //     text: '运维开源',
    //     items: [
    //       { text: '移动端', link: '/pages/links/templates/mobile.md' },
    //       { text: '管理端', link: '/pages/links/templates/admin.md' },
    //       { text: '网页端', link: '/pages/links/templates/ssr.md' },
    //     ],
    //   },
    //   {
    //     text: '开源模板',
    //     items: [
    //       { text: '移动端', link: '/pages/links/templates/mobile.md' },
    //       { text: '管理端', link: '/pages/links/templates/admin.md' },
    //       { text: '网页端', link: '/pages/links/templates/ssr.md' },
    //     ],
    //   },
    //   {
    //     text: '开源工具',
    //     items: [
    //       { text: '移动端', link: '/pages/links/templates/mobile.md' },
    //       { text: '管理端', link: '/pages/links/templates/admin.md' },
    //       { text: '网页端', link: '/pages/links/templates/ssr.md' },
    //     ],
    //   },
    // ],
    // '/pages/logs/': [
    //     {
    //         text: 'V 1.0.0',
    //         items: [
    //           { text: '1.0.1', link: '/logs/v1_0_1.md' },
    //           { text: '1.0.2', link: '/logs/v1_0_2.md' },
    //           { text: '1.0.3', link: '/logs/v1_0_3.md' },
    //         ],
    //     },
    //     {
    //         text: 'V 2.0.0',
    //         items: [
    //           { text: '2.0.1', link: '/logs/v2_0_1.md' },
    //           { text: '2.0.2', link: '/logs/v2_0_2.md' },
    //           { text: '2.0.3', link: '/logs/v2_0_3.md' },
    //         ],
    //     },
    // ],
    // '/guide/': [
    //   {
    //     text: 'Essentials',
    //     items: [
    //       { text: 'Introduction', link: '/guide/introduction' },
    //       { text: 'Installation', link: '/guide/installation' },
    //       {
    //         text: 'Application & Component Instances',
    //         link: '/guide/instance'
    //       },
    //       { text: 'Template Syntax', link: '/guide/template-syntax' },
    //       {
    //         text: 'Data Properties and Methods',
    //         link: '/guide/data-methods'
    //       },
    //       {
    //         text: 'Computed Properties and Watchers',
    //         link: '/guide/computed'
    //       },
    //       {
    //         text: 'Class and Style Bindings',
    //         link: '/guide/class-and-style'
    //       },
    //       { text: 'Conditional Rendering', link: '/guide/conditional' },
    //       { text: 'List Rendering', link: '/guide/list' },
    //       { text: 'Event Handling', link: '/guide/events' },
    //       { text: 'Form Input Bindings', link: '/guide/forms' },
    //       { text: 'Components Basics', link: '/guide/component-basics' }
    //     ]
    //   },
    //   {
    //     text: 'Components In-Depth',
    //     items: [
    //       {
    //         text: 'Component Registration',
    //         link: '/guide/component-registration'
    //       },
    //       { text: 'Props', link: '/guide/component-props' },
    //       { text: 'Non-Prop Attributes', link: '/guide/component-attrs' },
    //       { text: 'Custom Events', link: '/guide/component-custom-events' },
    //       { text: 'Slots', link: '/guide/component-slots' },
    //       {
    //         text: 'Provide / inject',
    //         link: '/guide/component-provide-inject'
    //       },
    //       {
    //         text: 'Dynamic & Async Components',
    //         link: '/guide/component-dynamic-async'
    //       },
    //       { text: 'Template refs', link: '/guide/component-template-refs' },
    //       {
    //         text: 'Handling Edge Cases',
    //         link: '/guide/component-edge-cases'
    //       }
    //     ]
    //   },
    //   {
    //     text: 'Transitions & Animation',
    //     items: [
    //       { text: 'Overview', link: '/guide/transitions-overview' },
    //       {
    //         text: 'Enter & Leave Transitions',
    //         link: '/guide/transitions-enterleave'
    //       },
    //       { text: 'List Transitions', link: '/guide/transitions-list' },
    //       { text: 'State Transitions', link: '/guide/transitions-state' }
    //     ]
    //   },
    //   {
    //     text: 'Reusability',
    //     items: [
    //       { text: 'Mixins', link: '/guide/mixins' },
    //       { text: 'Custom Directives', link: '/guide/custom-directive' }
    //     ]
    //   },
    //   {
    //     text: 'Composition API',
    //     items: [
    //       {
    //         text: 'Introduction',
    //         link: '/guide/composition-api-introduction'
    //       },
    //       { text: 'Setup', link: '/guide/composition-api-setup' },
    //       {
    //         text: 'Lifecycle Hooks',
    //         link: '/guide/composition-api-lifecycle-hooks'
    //       },
    //       {
    //         text: 'Provide / Inject',
    //         link: '/guide/composition-api-provide-inject'
    //       },
    //       {
    //         text: 'Template Refs',
    //         link: '/guide/composition-api-template-refs'
    //       }
    //     ]
    //   },
    //   {
    //     text: 'Advanced',
    //     items: [
    //       { text: 'Teleport', link: '/guide/teleport' },
    //       { text: 'Render Function', link: '/guide/render-function' },
    //       { text: 'Plugins', link: '/guide/plugins' }
    //     ]
    //   },
    //   {
    //     text: 'Digging Deeper',
    //     items: [
    //       { text: 'Reactivity in Depth', link: '/guide/reactivity' },
    //       {
    //         text: 'Reactivity Fundamentals',
    //         link: '/guide/reactivity-fundamentals'
    //       },
    //       {
    //         text: 'Reactivity in Computed and Watch',
    //         link: '/guide/reactivity-computed-watchers'
    //       },
    //       {
    //         text: 'Rendering Mechanisms and Optimizations',
    //         link: '/guide/optimizations'
    //       }
    //     ]
    //   },
    //   {
    //     text: 'Tooling',
    //     items: [
    //       {
    //         text: 'Single File Components',
    //         link: '/guide/single-file-component'
    //       },
    //       { text: 'Testing', link: '/guide/testing' },
    //       { text: 'TypeScript Support', link: '/guide/typescript-support' },
    //       { text: 'Mobile', link: '/guide/mobile' },
    //       {
    //         text: 'Production Deployment',
    //         link: '/guide/tooling/deployment'
    //       }
    //     ]
    //   },
    //   {
    //     text: 'Scaling Up',
    //     items: [
    //       { text: 'Routing', link: '/guide/routing' },
    //       { text: 'State Management', link: '/guide/state-management' },
    //       { text: 'Server-Side Rendering', link: '/guide/ssr' }
    //     ]
    //   },
    //   {
    //     text: 'Accessibility',
    //     items: [
    //       { text: 'Basics', link: '/guide/a11y-basics' },
    //       { text: 'Semantics', link: '/guide/a11y-semantics' },
    //       { text: 'Standards', link: '/guide/a11y-standards' },
    //       { text: 'Resources', link: '/guide/a11y-resources' }
    //     ]
    //   }
    // ],
    // '/api/': [
    //   {
    //     text: 'Global API',
    //     items: [
    //       { text: 'Application', link: '/api/application' },
    //       { text: 'Utilities', link: '/api/utilities' }
    //     ]
    //   },
    //   {
    //     text: 'Component',
    //     items: [
    //       { text: 'Options: State', link: '/api/options-state' },
    //       { text: 'Options: Rendering', link: '/api/options-rendering' },
    //       {
    //         text: 'Options: Lifecycle Hooks',
    //         link: '/api/options-lifecycle'
    //       },
    //       {
    //         text: 'Options: Composition',
    //         link: '/api/options-composition'
    //       },
    //       { text: 'Options: Misc', link: '/api/options-misc' },
    //       {
    //         text: 'Instance',
    //         link: '/api/component-instance'
    //       }
    //     ]
    //   },
    //   {
    //     text: 'Composition API',
    //     items: [
    //       { text: 'setup()', link: '/api/composition-setup' },
    //       { text: 'Reactivity', link: '/api/composition-reactivity' },
    //       { text: 'Lifecycle', link: '/api/composition-lifecycle' }
    //     ]
    //   },
    //   {
    //     text: 'Built-ins',
    //     items: [
    //       { text: 'Directives', link: '/api/built-in-directives' },
    //       { text: 'Components', link: '/api/built-in-components' },
    //       { text: 'Special Attributes', link: '/api/special-attributes' }
    //     ]
    //   },
    //   {
    //     text: 'Single File Component',
    //     items: [
    //       { text: 'Specification', link: '/api/sfc-spec' },
    //       { text: '<script setup>', link: '/api/sfc-script-setup' },
    //       { text: '<style> Features', link: '/api/sfc-style' }
    //     ]
    //   },
    //   {
    //     text: 'TypeScript',
    //     items: [{ text: 'Utility Types', link: '/api/types-utility' }]
    //   },
    //   {
    //     text: 'Advanced',
    //     items: [
    //       { text: 'Render Function Helpers', link: '/api/render-function' },
    //       { text: 'Compiler Transforms', link: '/api/compiler' },
    //       { text: 'Server-Side Rendering', link: '/api/ssr' },
    //       { text: 'Custom Renderer', link: '/api/custom-renderer' }
    //     ]
    //   }
    // ]
    // }
  },
  vite: {
    resolve: {
      alias: [
        // {
        //   find: /^.*\/VPContent\.vue$/,
        //   replacement: fileURLToPath(
        //     new URL('./components/CustomContent.vue', import.meta.url)
        //   )
        // },
        // {
        //   find: /^.*\/VPNavBar\.vue$/,
        //   replacement: fileURLToPath(
        //     new URL('./components/CustomNavBar.vue', import.meta.url)
        //   )
        // },
        // {
        //   find: /^.*\/VPContent\.vue$/,
        //   replacement: fileURLToPath(
        //     new URL('./components/CustomContent.vue', import.meta.url)
        //   )
        // }
      ]
    }
  },
  vue: {
  },
  // locales: {
  //   root: {
  //     label: '简体中文',
  //     lang: 'zh'
  //   },
  //   'en-US': {
  //     label: 'English',
  //     lang: 'en',
  //     link: '/en/guide/'
  //   },
  //   'zh-CN': {
  //     label: '简体中文',
  //     lang: 'zh',
  //     link: '/zh/guide/'
  //   }
  // },
  // buildEnd: genFeed
})
